import { APIGET, APIPOST, APIPUT, APIDELETE } from '../bgApiToken';

//设备类型设置查询
export const queryUnit = (param) => APIPOST('/queryUnit', param);
//设备类型设置根据设备id查询
export const queryUnitById = (param) => APIPOST('/queryUnitById', param);
//设备类型设置根据设备id修改
export const updateUnit = (param) => APIPOST('/updateUnit', param);
//设备类型设置根据设备id删除
export const deleteUnit = (param) => APIPOST('/deleteUnit', param);
//设备类型设置新增
export const insertUnit = (param) => APIPOST('/insertUnit', param);

//mqtt设备分页查询
export const querylPageList = (param) => APIPOST(`/mqtt/queryIPageList?size=${param.size}&current=${param.current}`);
//mqtt设备查询
export const queryList = () => APIGET(`/mqtt/queryList`);

//mqtt设备清空
export const XiaFa = (param) => APIGET(`/mqtt/XiaFa?id=${param.id}&know=${param.know}`);
//mqtt设备清空记录
export const queryPageListHis = (param) => APIPOST(`/mqtt/queryPageListHis?size=${param.size}&current=${param.current}`);
